﻿

using System.Text.Json.Serialization;

namespace Open.Product.Domain.Dto
{

    public class ProductDto /*: IEntityDto<long>*/
    {
        /// <summary>
        /// ID
        /// </summary>
        [JsonPropertyName("product_id")]
        public long Id { get; set; }

        /// <summary>
        /// 商品分类ID
        /// </summary>
        [JsonPropertyName("cate_id")]
        public long ProductCategoryId { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        [JsonPropertyName("code")]
        public string Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [JsonPropertyName("name")]
        public string Name { get; set; }

        /// <summary>
        /// 拼音码
        /// </summary>
        [JsonPropertyName("pinyin_code")]
        public string PyCode { get; set; }

        /// <summary>
        /// 商品标识索引。用于增量获取商品
        /// </summary>
        [JsonPropertyName("id_index")]
        public int IdentificationIndex { get; set; }

        /// <summary>
        /// 计价方式 1=普通 2=计重 3=计数
        /// </summary>
        [JsonPropertyName("pricing_mode")]
        public int PricingMode { get; set; }

        /// <summary>
        /// 单位信息
        /// </summary>
        public List<ProductStandardDto> Standards { get; set; } = new List<ProductStandardDto>();
    }
}